package com.asm.entity.sys;

import com.asm.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author zhangyufu
 * @description 角色权限类，继承于BaseEntity类
 * 用于管理不同角色的权限
 * @date 2019/7/9
 */
@Slf4j
@Data
@Accessors(chain = true)
@Entity
@Table(name = "t_role_access")
public class RoleAccess extends BaseEntity {

    /**
     * 用户编号
     */
    @Column(name = "user_id")
    private long userId;

    /**
     * 用户Id对应的角色代码
     */
    @Column(name = "role_code", length = 8)
    private String roleCode;

}
